<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>   
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ page isELIgnored="false" %>
<link href="<%=request.getContextPath()%>/resources/css/forms.css" rel="stylesheet"> 
<title>Administration | configuration</title>
</head>
<body>
	<h1>Configuration email</h1>
	<form method="post">
		<c:forEach items="${lstProp}" var="entry">
			<div class="formseparator">
				<label> ${entry.key}</label>
				<c:choose>
				      <c:when test="${entry.key=='gmail.password'}">
						<input type="password" name="${entry.key}" value="${entry.value}"/>			      
				      </c:when>			
				      <c:otherwise>
						<input type="text" name="${entry.key}" value="${entry.value}"/>
				      </c:otherwise>
				</c:choose>
			</div>
		</c:forEach>
		<div id="formBouttons">
			<input type="submit" name="enregistrer" value="enregistrer"  class="btn btn-lg btn-primary " />
			<input type="submit" name="reset" value="Paramètres par défaut" class="btn btn-lg btn-primary "/>
		</div>
	</form>
</body>
</html>